#include <ros/ros.h>
#include "test/test.h"

int main(int argc,char** argv)
{
	ros::init(argc,argv,"test_publisher");
	ros::NodeHandle n;
	ros::Publisher pub=n.advertise<test::test>("/test",10);
	ros::Rate loop_rate(1);
	
	while(ros::ok())
	{
		test::test data;
		data.name="Marry";
		data.grade=90;
		pub.publish(data);
		loop_rate.sleep();
	}
	
	return 0;
}
